﻿<OptionComponent Id="@id" SmallSpacing="@SmallSpacing" CssClass="option-component-button">
    <div>
        <DxButton RenderStyle="ButtonRenderStyle.Secondary"
                  CssClass="@CssClass"
                  IconCssClass="@IconCssClass"
                  Enabled="Enabled"
                  Text="@Text"
                  Click="@OnClick"/>
    </div>
</OptionComponent>

@code {
    readonly string id = Guid.NewGuid().ToString();

    [Parameter] public string CssClass { get; set; }
    [Parameter] public string IconCssClass { get; set; }
    [Parameter] public string Label { get; set; }
    [Parameter] public string Text { get; set; }
    [Parameter] public bool SmallSpacing { get; set; }
    [Parameter] public bool Enabled { get; set; } = true;

    [Parameter] public EventCallback OnClick { get; set; }
}
